@import '~choerodon-ui/lib/style/themes/default';

@success: #00bfa5;
@running: #4d90fe;
@pending: #ffb100;
@failed: #f77a70;
@canceled: #d8d8d8;
@skipped: #d8d8d8;
@stop: #ff7043;
@created: rgba(216, 216, 216, 0.12);
@not_audit: #f1b42d;

.c7ncd-continuous-deployment-table-content {
  &-column-name {
    height: 20px;
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #415bc9;
    line-height: 20px;
  }
  &-column-name:hover {
    text-decoration: underline;
    cursor: pointer;
  }
  &-column-trigger {
    display: flex;
    align-items: center;
    &-name {
      height: 20px;
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #0f1358;
      line-height: 20px;
    }
    &-type {
      display: inline-block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding-top: 5px;
      padding-left: 4px;
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(15, 19, 88, 0.65);
    }
  }

  &-column-stage {
    margin: 0 auto 0 0;
    &-name {
      font-size: 12px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(15, 19, 88, 0.65);
    }
    &-item {
      width: 0.08rem;
      height: 0.08rem;
      display: inline-block;
      border-radius: 50%;
      background: @canceled;

      &-success {
        background: @success;
      }

      &-failed {
        background: @failed;
      }

      &-running {
        background: @running;
      }

      &-pending {
        background: @pending;
      }

      &-stop {
        background: @stop;
      }

      &-not_audit {
        background: @not_audit;
      }
    }

    &-line {
      width: 0.2rem;
      height: 1px;
      border-top: 1px solid #d3d3d3;
      display: inline-block;
      vertical-align: middle;
      margin: 0.02rem;
      &-manual {
        border-top: 1px dotted @not_audit;
      }

      &:first-child {
        display: none;
      }
    }
  }
}
